<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="f" uri="http://www.springframework.org/tags/form"%>
<html>
<body>
	<f:form method="post" commandName="account" action="save">
		<f:hidden path="id"/>
		<table>
			<tr>
				<td><f:label path="name">Name</f:label></td>
				<td><f:input path="name"/></td>
				<td><f:errors path="name"/></td>
			</tr>
			<tr>
				<td><f:label path="username">Username</f:label></td>
				<td><f:input path="username"/></td>
				<td><f:errors path="username"/></td>
			</tr>
			<tr>
				<td><f:label path="company">Company</f:label></td>
				<td>
					<f:select path="company.id">
						<option value="">-- Select One --</option>
						<f:options items="${companies}" itemValue="id" itemLabel="name"/>
					</f:select>
				</td>
				<td><f:errors path="company.id"/></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" value="Save"/></td>
				<td>&nbsp;</td>
			</tr>
		</table>
	</f:form>
</body>
</html>